<?php
/**
 * @version 0.8.3 2010-10-07
 * @package Joomla
 * @subpackage LeagueResults
 * @copyright (C)  2008, 2009, 2010 Henryk Drozd
 * @license GNU/GPL, see LICENSE.php
 * LeagueResults is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.

 * LeagueResults is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
defined('_JEXEC') or die('Restricted access');

?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
	<table cellspacing="0" cellpadding="0" border="0" width="50%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					
					<tr>
						<td>
							<label for="season">
								<?php echo JText::_( 'WHICH TABLE TO COPY TO' ).':'; ?>
							</label>
						</td>
						<td>
						<?php
						echo $this->Lists['tables']
						?>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<label for="player">
								<?php echo JText::_( 'TABLE POSITIONS TO COPY' ).':'; ?>
							</label>
						</td>
					</tr>
				<?php foreach ($this->rows as $r){ ?>
					<tr><td colspan="2">
					<?php
					echo $r->name.', '.$r->tname.', '.$r->tdate.', '.$r->position.', '.$r->tablename;
					$pids[] = $r->id;
					?>
					</td></tr>
				<?php } ?>
					</table>

	
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="option" value="com_lr" />
<input type="hidden" name="cid" value="<?php echo implode(',',$pids); ?>" />
<input type="hidden" name="controller" value="tablecontents" />
<input type="hidden" name="boxchecked" value="1" />
<input type="hidden" name="view" value="tablecontents" />
<input type="hidden" name="task" value="" />
</table>
</form>
<?php
//print_r ($this);
?>
<p class="copyright">
		<?php echo lrAdmin::footer( ); ?>
</p>
	